import { ApiCall } from "tsrpc";
import { ReqPlayer, ResPlayer } from "../shared/protocols/PtlPlayer";
import { server } from "..";

export default async function (call: ApiCall<ReqPlayer, ResPlayer>) {
    // TODO


    // Success
    // let time = new Date();
    // call.succ({
    //     id:888,
    //     nickname:'000'
    // });

    setInterval(() => {
        server.broadcastMsg('player/Player', {
            id: 1,
            nickname: 'xiejunting',
        })
    }, 1000);
    



}